<%@page import="net.groupme.user.UserListsManager"%>
<%@page import="java.util.List"%>
<%@page import="net.groupme.model.User"%>
<%@page import="java.util.Iterator"%>
<%@page import="net.groupme.gui.constants.VIEW_VOCABULARY"%>

<div id="userPhotos">
<% UserListsManager ulm = new UserListsManager(); %>
<% List latestUsersWithPhoto = ulm.getRandomUsersWithPhotos();
			Iterator itSBU = latestUsersWithPhoto.iterator(); 
			while (itSBU.hasNext()){
				User actualUser = (User) itSBU.next();%>
				<div class="userWithPhoto">
					<a href="<%= VIEW_VOCABULARY.RESTful_USER_URI_PATTERN %><%= actualUser.getUserName() %>" title="view user page">
						<img style="border:0" src="<%= actualUser.getPhoto()%>" width="70" height="70" alt="Userfoto"/>
					</a>
					<a style="font-size:0.8em;color:black" href="<%= VIEW_VOCABULARY.RESTful_USER_URI_PATTERN %><%= actualUser.getUserName() %>" title="view user page"><%= actualUser.getUserName() %></a>
				</div>		
			<%}%>
			<br style="clear:left"/>
			<span style="font-size:0.7em">only users with photo listed</span>
</div>